package com.example.exception;

import lombok.Data;

@Data
public class CustomException extends RuntimeException{

    private int errorCode;
    private String errorMsg;

    public CustomException(String errorMsg) {
        super(errorMsg);
        this.errorMsg = errorMsg;
        this.errorCode = 100002;
    }
}
